package com.ruoyi.diagnosis.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 设备详情对象 dgn_device
 * 
 * @author fansea
 * @date 2024-07-22
 */
@TableName("dgn_device")
public class Device extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 设备ID */
    private Long deviceId;

    /** 设备名称 */
    @Excel(name = "设备名称")
    private String name;

    /** 串口号 */
    @Excel(name = "串口号")
    private String port;

    /** 光栅地址1 */
    @Excel(name = "光栅地址1")
    private Integer rasterAddress1;

    /** 光栅地址2 */
    @Excel(name = "光栅地址2")
    private Integer rasterAddress2;

    /** 传送带地址 */
    @Excel(name = "传送带地址")
    private Integer conveyorAddress;

    public void setDeviceId(Long deviceId) 
    {
        this.deviceId = deviceId;
    }

    public Long getDeviceId() 
    {
        return deviceId;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setPort(String port) 
    {
        this.port = port;
    }

    public String getPort() 
    {
        return port;
    }
    public void setRasterAddress1(Integer rasterAddress1)
    {
        this.rasterAddress1 = rasterAddress1;
    }

    public Integer getRasterAddress1()
    {
        return rasterAddress1;
    }
    public void setRasterAddress2(Integer rasterAddress2)
    {
        this.rasterAddress2 = rasterAddress2;
    }

    public Integer getRasterAddress2()
    {
        return rasterAddress2;
    }
    public void setConveyorAddress(Integer conveyorAddress)
    {
        this.conveyorAddress = conveyorAddress;
    }

    public Integer getConveyorAddress()
    {
        return conveyorAddress;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("deviceId", getDeviceId())
            .append("name", getName())
            .append("port", getPort())
            .append("rasterAddress1", getRasterAddress1())
            .append("rasterAddress2", getRasterAddress2())
            .append("conveyorAddress", getConveyorAddress())
            .append("remark", getRemark())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("createBy", getCreateBy())
            .append("updateBy", getUpdateBy())
            .toString();
    }
}
